% author : Lei Yinghaonan
% Creation Date : 2021.11.22
% Last Date : 2021.11.23
% brief : Use origin project.

clear
clc
cd('E:\work_code\Matlab_code\matlab_origin')
addpath('./origin_tool')
%%
obj = CreatOriginObj();
%%
obj = CreatOriginObj();
book = CreatOriginBook(obj);
Sheet = FindSheetOne(obj,book);
%%
x = (1:50)';
y = cos(x);
data = [x y];
disp(size(data))
%%
Sheet = FindSheetOne(obj,book);
strsheet = 'cos';
RenameSheet(Sheet,strsheet)
bookname = '[Book1]';
sheetname = strsheet;
LoadData2Sheet(obj,strcat(bookname,sheetname),data)
%%
LoadOriginTemplate(obj,'E:\work_code\Matlab_code\matlab_origin\OriginProjectSinLine.otpu')
LoadOriginTemplate(obj,'E:\work_code\Matlab_code\matlab_origin\OriginProject\SinLine.opju')